"use strict";

require("../../helpers/qunitPerformanceExtension.js");
require("../../helpers/widgetsIterator.js");

require("common.css!");
require("generic_light.css!");

var $ = require("jquery"),
    componentName = "dxSwitch";

require("ui/switch");

QUnit.testStart(function() {
    $("#qunit-fixture").addClass("qunit-fixture-visible");
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});

QUnit.performanceTest(componentName + " performance test", function(assert) {
    var measureFunction = function() {
        $("<div>").appendTo("#qunit-fixture")[componentName]({});
    };

    assert.measureStyleRecalculation(measureFunction, 2);
});
